package o;

import com.huawei.appmarket.service.uninstallreport.UninstallRecord;
import java.util.List;

public class ekc {
    private static final Object ˋ = new byte[0];
    private static ekc ॱ = null;
    private cfu ˊ = euc.ˊ().ʽ(UninstallRecord.TABLE_NAME);

    private ekc() {
    }

    public static ekc ˋ() {
        ekc o_ekc;
        synchronized (ˋ) {
            if (ॱ == null) {
                ॱ = new ekc();
            }
            o_ekc = ॱ;
        }
        return o_ekc;
    }

    public void ˏ() {
        for (UninstallRecord uninstallRecord : this.ˊ.ˋ(UninstallRecord.class, null, null, null, null)) {
            uninstallRecord.ˏ(1);
            String[] strArr = new String[]{uninstallRecord.ˋ(), String.valueOf(uninstallRecord.ॱ())};
            this.ˊ.ॱ(uninstallRecord, "pkgName_=? AND uninstallTime_=?", strArr);
        }
    }

    public List<UninstallRecord> ॱ() {
        String[] strArr = new String[]{"1"};
        return this.ˊ.ˋ(UninstallRecord.class, "state_=?", strArr, null, null);
    }

    public void ˎ() {
        String[] strArr = new String[]{"1"};
        this.ˊ.ˋ("state_=?", strArr);
    }

    public void ˊ() {
        String[] strArr = new String[]{"1"};
        List<UninstallRecord> ˋ = this.ˊ.ˋ(UninstallRecord.class, "state_=?", strArr, null, null);
        String str = "pkgName_=? AND uninstallTime_=?";
        for (UninstallRecord uninstallRecord : ˋ) {
            uninstallRecord.ˏ(0);
            this.ˊ.ॱ(uninstallRecord, str, new String[]{uninstallRecord.ˋ(), String.valueOf(uninstallRecord.ॱ())});
        }
    }

    public long ˏ(UninstallRecord uninstallRecord) {
        return this.ˊ.ˎ((cfr) uninstallRecord);
    }
}
